<template>
	<view>
		<view class="empty">
			<u-empty text="暂无学情报告" src="" icon-size="220" font-size="36"></u-empty>
		</view>
		<!-- <web-view :webview-styles="webviewStyles" :src="hearf" v-if="webShow"></web-view> -->


	</view>
</template>

<script>
	import {
		getSnUid
	} from '@/api/userHome.js'
	export default {
		data() {
			return {
				hearf: '',
				webShow: true
			}
		},
		onShow() {
			this.getSnUids()
			this.webShow = true
		},
		onHide() {
			this.hearf = ''
			this.webShow = false
		},
		methods: {
			getSnUids(id = uni.getStorageSync('snValue')) {
				getSnUid({
					sn: id
				}).then(res => {
					this.$nextTick(() => {
						this.hearf = 'https://qicaihong.gankao.com/p-account/statistics/student?gankaoUID=' + res.data.uid
					})
				}).catch(err => {
					this.$nextTick(() => {
						this.hearf = ''
					})
				})
			}
		}
	}
</script>